//
//  CinemaCell.m
//  WXMovie
//
//  Created by HZApple on 16/4/8.
//  Copyright © 2016年 无限互联. All rights reserved.
//

#import "CinemaCell.h"

@implementation CinemaCell

- (void)setModel:(CinemaModel2 *)model {
    _model = model;
    _cinemaLabel.text = _model.name;
    _gradeLabel.text = _model.grade;
    _addressLabel.text = _model.address;
    _lowPriceLabel.text = [NSString stringWithFormat:@"￥%@" ,_model.lowPrice];
    self.tag = _model.tag;
    [self _createUI];
}

- (instancetype)init {
    return [self initWithFrame:CGRectZero];
}

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self _createUI];
    }
    return self;
}

- (void)_createUI {
    
    
    
    _seatIMageView.image = [UIImage imageNamed:@"cinemaSeatMark@2x"];
    _juanImageView.image = [UIImage imageNamed:@"cinemaCouponMark@2x"];
    _distanceLabel.text = @"10KM";
}

- (void)awakeFromNib {
    
//    NSDictionary *dic = @{NSFontAttributeName : [UIFont systemFontOfSize:17]};
//    
//    CGSize size = [_cinemaLabel.text sizeWithAttributes:dic];
//    
//    CGFloat x = CGRectGetMaxX(_cinemaLabel.bounds);
//    
//    _cinemaLabel.frame = CGRectMake(0, 0, size.width, size.height);
//    _gradeLabel.frame = CGRectMake( x + 40 , 10, 40, 30);

    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
